<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.db.conn"%>
<%@ page import="java.sql.*"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>


<script src="<%=path %>/admin/js/jquery.js" type="text/javascript"></script>
<script src="<%=path %>/admin/js/formValidator.js" type="text/javascript"></script>  
<script src="<%=path %>/admin/js/formValidatorRegex.js" type="text/javascript"></script>
<link href="<%=path %>/admin/css/validator.css" rel="stylesheet" type="text/css" />

<jsp:include flush="true" page="${basePath}/admin/head.jsp"></jsp:include>
	 <div class="panel panel-primary">
            <div class="panel-heading">
                <h3 class="panel-title">修改密码</h3>
            </div>
            <div class="panel-body" style="min-height: 500px;">
           <table style="width:100%;"><tr><td align="center">
          		<form  action="<%=path %>/admin_Pass" method="post">

					  <table  style="width:98%;margin-left:10px;" align="center">
                    <tbody>
                    <tr>
    <td  style=" text-align:right; width:30%;"><font style='color:red'>*&nbsp;</font>原密码:</td>
        <td class="tbright"><div style="display:inline;float:left;"><input name="txt_pwd" id="txt_pwd" type="password" /></div><div id="txt_pwdTip" style="width:250px; display:inline;float:left; text-align:left;"></div> </td>
    </tr>
    <tr>
        <td  style=" text-align:right; width:30%;"><font style='color:red'>*&nbsp;</font>新密码:</td>
        <td class="tbright"><div style="display:inline;float:left;"><input name="txt_pwd2" id="txt_pwd2" type="password" /></div><div id="txt_pwd2Tip" style="width:250px; display:inline;float:left; text-align:left;"></div> </td>
    </tr>
        <tr>
        <td  style=" text-align:right; width:30%;"><font style='color:red'>*&nbsp;</font>确认密码:</td>
        <td class="tbright"><div style="display:inline;float:left;"><input name="txt_pwd3"  id="txt_pwd3" type="password" /></div><div id="txt_pwd3Tip" style="width:250px; display:inline;float:left; text-align:left;"></div> </td>
    </tr>


    <tr>
        <td>&nbsp;</td>
        <td align="left">
        <input type="submit" name="btnAdd" value="确 定" onclick="return jQuery.formValidator.PageIsValid('1');" id="btnAdd"   class="btn btn-info" />
          </td>
    </tr>
                    </tbody>
                </table>
			
    </form>
	<script language="javascript" type="text/javascript">
    $(document).ready(function () {
        $.formValidator.initConfig({ onError: function (msg) { alert(msg) } });
        $("#txt_pwd").formValidator({ onshow: "请输入原密码", onfocus: "原密码不能为空", oncorrect: "密码合法" }).InputValidator({ min: 1, onerror: "原密码不能为空,请确认" });
        $("#txt_pwd2").formValidator({ onshow: "请输入新密码", onfocus: "新密码不能为空", oncorrect: "密码合法" }).InputValidator({ min: 1, onerror: "新密码不能为空,请确认" });
        $("#txt_pwd3").formValidator({ onshow: "请输入重复密码", onfocus: "两次密码必须一致哦", oncorrect: "密码合法" }).InputValidator({ min: 1, onerror: "重复密码不能为空,请确认" });
    });
</script>

   </td></tr></table>
            

            </div>
        </div>




